<template>
  <div class="home_container">
    <swiper-box :lunboList="lunboList" :isFull="true"></swiper-box>
    
    <ul class="mui-table-view mui-grid-view mui-grid-9">
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/newslist">
          <span class="mui-icon mui-icon-star"></span>
          <div class="mui-media-body">新闻资讯</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/picshare">
          <span class="mui-icon mui-icon-camera"></span>
            <div class="mui-media-body">图片分享</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/goodslist">
          <span class="mui-icon mui-icon-extra mui-icon-extra-cart"></span>
          <div class="mui-media-body">商品购买</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/message">
          <span class="mui-icon mui-icon-compose"></span>
          <div class="mui-media-body">留言反馈</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/callus">
          <span class="mui-icon mui-icon-phone"></span>
          <div class="mui-media-body">联系作者</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4">
        <router-link to="/home/tags">
          <span class="mui-icon mui-icon-info"></span>
          <div class="mui-media-body">个人标签</div>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
import SwiperBox from '../subcomponents/SwiperBox'

export default {
  name: 'home',
  components: {
    SwiperBox
  },
  data() {
    return {
      lunboList: [
        {
          url: 1,
          img: '../../../static/images/2.jpg'
        },
        {
          url: 2,
          img: '../../../static/images/2.jpg'
        },
        {
          url: 3,
          img: '../../../static/images/2.jpg'
        }
      ]
    }
  },
}
</script>

<style lang="less" scoped>
  
  .home_container {
    height: 100%;
    width: 100%;
    min-height: calc(100vh - 90px);
    min-height: -webkit-calc(100vh - 90px);
    min-height: -moz-calc(100vh - 90px);
    min-height: -o-calc(100vh - 90px);
    background-color: #fff;
  }
  .mui-table-view {
    background-color: #fff;

    .mui-table-view-cell {
      border: 0;

      img {
        width: 60px;
        height: 60px;
      }
      .mui-media-body {
        font-size: 13px;
      }
    }
  }
</style>
